home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / vidlibp / vidopt.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-01  |  5.1 KB  |  193 lines

  1. VERSION 2.00
  2. Begin Form VidOpt 
  3.    BackColor       =   &H00FFFFFF&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Copy Video Options"
  6.    ClientHeight    =   3810
  7.    ClientLeft      =   2115
  8.    ClientTop       =   1440
  9.    ClientWidth     =   3015
  10.    Height          =   4215
  11.    HelpContextID   =   135
  12.    Left            =   2055
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   3810
  17.    ScaleWidth      =   3015
  18.    Top             =   1095
  19.    Width           =   3135
  20.    Begin CommandButton cmdOK 
  21.       Caption         =   "&OK"
  22.       Default         =   -1  'True
  23.       Height          =   540
  24.       HelpContextID   =   135
  25.       Left            =   855
  26.       TabIndex        =   7
  27.       Top             =   3075
  28.       Width           =   1230
  29.    End
  30.    Begin Frame fraReplace 
  31.       BackColor       =   &H00FFFFFF&
  32.       Caption         =   "Data Option:"
  33.       Height          =   990
  34.       HelpContextID   =   135
  35.       Left            =   315
  36.       TabIndex        =   3
  37.       Top             =   1875
  38.       Width           =   2220
  39.       Begin OptionButton optReplace 
  40.          Caption         =   "Replace data"
  41.          Height          =   315
  42.          HelpContextID   =   135
  43.          Left            =   135
  44.          TabIndex        =   5
  45.          Top             =   600
  46.          Width           =   1770
  47.       End
  48.       Begin OptionButton optAppend 
  49.          Caption         =   "Append data"
  50.          Height          =   315
  51.          HelpContextID   =   135
  52.          Left            =   135
  53.          TabIndex        =   4
  54.          Top             =   300
  55.          Value           =   -1  'True
  56.          Width           =   1770
  57.       End
  58.    End
  59.    Begin CheckBox chkRating 
  60.       Caption         =   "Copy Rating Records"
  61.       Height          =   315
  62.       HelpContextID   =   135
  63.       Left            =   405
  64.       TabIndex        =   2
  65.       Top             =   1500
  66.       Width           =   2220
  67.    End
  68.    Begin CheckBox chkGenre 
  69.       Caption         =   "Copy Genre Records"
  70.       Height          =   315
  71.       HelpContextID   =   135
  72.       Left            =   405
  73.       TabIndex        =   1
  74.       Top             =   1125
  75.       Width           =   2220
  76.    End
  77.    Begin CheckBox chkVideo 
  78.       Caption         =   "Copy Video Records"
  79.       Height          =   315
  80.       HelpContextID   =   135
  81.       Left            =   405
  82.       TabIndex        =   0
  83.       Top             =   750
  84.       Width           =   2220
  85.    End
  86.    Begin Label lblTitle 
  87.       AutoSize        =   -1  'True
  88.       Caption         =   "Set Copy Options"
  89.       FontBold        =   -1  'True
  90.       FontItalic      =   0   'False
  91.       FontName        =   "MS Sans Serif"
  92.       FontSize        =   13.5
  93.       FontStrikethru  =   0   'False
  94.       FontUnderline   =   -1  'True
  95.       Height          =   300
  96.       Left            =   405
  97.       TabIndex        =   6
  98.       Top             =   225
  99.       Width           =   2070
  100.    End
  101. ' Subsystem: Copy
  102. ' Module:    VidOpt.Frm
  103. ' Date:      01/01/94
  104. ' Author:    Richard Stauch
  105. ' Notes:
  106. ' This form gives the user an opportunity to select the
  107. ' files and tables they want to copy, and if they want to
  108. ' clear the "To" table first.
  109. Option Explicit
  110. DefInt A-Z
  111. Sub chkGenre_Click ()
  112. ' Toggle the Genre-Copy variable.
  113.   Select Case chkGenre.Value
  114.     Case UNCHECKED
  115.     ' Do not copy.
  116.       GenreCopy% = False
  117.     Case CHECKED
  118.     ' Copy.
  119.       GenreCopy% = True
  120.     Case GRAYED
  121.     ' Do nothing.
  122.   End Select
  123. End Sub
  124. Sub chkRating_Click ()
  125. ' Toggle the Rating-Copy variable.
  126.   Select Case chkRating.Value
  127.     Case UNCHECKED
  128.     ' Do not copy.
  129.       RatingCopy% = False
  130.     Case CHECKED
  131.     ' Copy.
  132.       RatingCopy% = True
  133.     Case GRAYED
  134.     ' Do nothing.
  135.   End Select
  136. End Sub
  137. Sub chkVideo_Click ()
  138. ' Toggle the Video-Copy variable.
  139.   Select Case chkVideo.Value
  140.     Case UNCHECKED
  141.     ' Do not copy.
  142.       VideoCopy% = False
  143.     Case CHECKED
  144.     ' Copy.
  145.       VideoCopy% = True
  146.     Case GRAYED
  147.     ' Do nothing.
  148.   End Select
  149. End Sub
  150. Sub cmdOK_Click ()
  151. ' Remove the VidOpt form from the screen.
  152.   Unload VidOpt
  153. End Sub
  154. Sub Form_Load ()
  155. ' Display the form, and select/unselect boxes.
  156. ' Notes:
  157. ' Setting the values in these check boxes and option buttons
  158. ' generates Click events for them, automatically setting the
  159. ' associated variables.
  160.   If GenreCopy% = True Then
  161.   ' Copy Genre table.
  162.     chkGenre = CHECKED
  163.   Else
  164.     chkGenre = UNCHECKED
  165.   End If
  166.   If RatingCopy% = True Then
  167.   ' Copy Rating table.
  168.     chkRating = CHECKED
  169.   Else
  170.     chkRating = UNCHECKED
  171.   End If
  172.   If VideoCopy% = True Then
  173.   ' Copy Video table.
  174.     chkVideo = CHECKED
  175.   Else
  176.     chkVideo = UNCHECKED
  177.   End If
  178.   If ReplaceData% = True Then
  179.   ' Set Replace option.
  180.     optReplace = True
  181.   Else
  182.     optAppend = True
  183.   End If
  184. End Sub
  185. Sub optAppend_Click ()
  186. ' Do not replace existing data.
  187.   ReplaceData% = False
  188. End Sub
  189. Sub optReplace_Click ()
  190. ' Replace data.
  191.   ReplaceData% = True
  192. End Sub
  193.